package database

import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import java.io.File

object DatabaseAccountBuilder {
    @JvmStatic
    fun build(filePath: String): DatabaseAccount {
        val json = File(filePath).readText()
        return Json.decodeFromString(json)
    }
}